﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleManager.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.admin.RoleManager" %>

<%@ Register assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用户组管理</title>       
    <style type="text/css">
        #form1
        {
            width: 605px;
        }
        .style6
        {
            width: 80px;
            height: 62px;
        }
        .style7
        {
            width: 328px;
            height: 62px;
        }
        .style8
        {
            height: 62px;
        }
        .style13
        {
            width: 80px;
            height: 38px;
        }
        .style14
        {
            width: 328px;
            height: 38px;
        }
        .style15
        {
            height: 38px;
        }
        .style17
        {
            width: 328px;
            height: 52px;
        }
        .style21
        {
            width: 80px;
            height: 32px;
        }
        .style22
        {
            width: 328px;
            height: 32px;
        }
        .style23
        {
            height: 32px;
        }
        .style24
        {
            width: 80px;
            height: 25px;
        }
        .style25
        {
            width: 328px;
            height: 25px;
        }
        .style26
        {
            height: 25px;
        }
        </style>
</head>

<body>
    <form id="form1" runat="server">
    <div>
        
        <div>
        <div>
            <div style="height: 17px; width: 594px">
            <asp:Label ID="lblOperationState" runat="server" Text="操作状态:" Font-Size="Small" 
                    ForeColor="#FF9933"></asp:Label>
            </div>
&nbsp;<div 
                style="width: 600px; vertical-align: text-bottom; text-align: left; font-size: small;">
                <asp:Label ID="Label10" runat="server" Text="搜索:" Height="20px" 
                    Font-Size="Small"></asp:Label>
                &nbsp;
                <asp:Label ID="Label11" runat="server" Text="用户组名称- " Height="20px" 
                    Font-Size="Small"></asp:Label>
                <asp:TextBox ID="txtSelectRoleName" runat="server" Height="16px" 
                    style="margin-top: 0px" Width="75px" Font-Size="Small"></asp:TextBox>
                &nbsp;&nbsp;<asp:Label ID="Label12" runat="server" Text="状态-" Height="20px" 
                    Font-Size="Small"></asp:Label>
                <asp:DropDownList ID="ddlSelectRoleState" runat="server" Font-Size="X-Small" 
                    Height="20px" Width="51px">
                    <asp:ListItem Value="1">启用</asp:ListItem>
                    <asp:ListItem Value="0">禁用</asp:ListItem>
                </asp:DropDownList>
                &nbsp;&nbsp;
                &nbsp;<asp:Button ID="btnSelectByCondition" runat="server" Text=" 搜 索 " Width="60px" 
                    Font-Names="黑体" Font-Size="Small" Height="21px" 
                    onclick="btnSelectByCondition_Click" />
            &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSelectRoleAll" runat="server" Text="所有用户组" Width="81px" 
                    Font-Names="黑体" Font-Size="Small" Height="21px" 
                    onclick="btnSelectRoleAll_Click" />
            &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnAddRole" runat="server" Text="新增用户组" Width="81px" 
                    Font-Names="黑体" Font-Size="Small" Height="21px" 
                    onclick="btnAddRole_Click" />
            </div>
&nbsp;<asp:GridView ID="GridViewRoleList" runat="server" Width="602px" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="1" CellSpacing="1" Font-Size="Small" 
                ForeColor="#333333" Height="100%" 
                onpageindexchanging="GridViewRoleList_PageIndexChanging" PageSize="5" 
                style="margin-right: 1px" DataKeyNames="RoleID">
                <PagerSettings PageButtonCount="5" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="25px" />
                <Columns>
                    <asp:BoundField DataField="RoleID" HeaderText="用户组编码" SortExpression="RoleID">
                    <HeaderStyle HorizontalAlign="Right" Width="80px" />
                    <ItemStyle HorizontalAlign="Center" Height="25px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RoleName" HeaderText="用户组名称" 
                        SortExpression="RoleName">
                    <HeaderStyle HorizontalAlign="Center" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="用户组描述" DataField="RoleDesc" 
                        SortExpression="RoleDesc" >
                    <ItemStyle Width="230px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="状 态" SortExpression="RecordStatus">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                                Text='<%# ((Eval("RecordStatus").ToString()=="0")?"禁用":"启用") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RecordStatus") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作区">
                        <ItemTemplate>
                            &nbsp;<asp:Button ID="btnSelectedRole" runat="server" Height="22px" 
                            CommandArgument='<%# Eval("RoleID")%>' 
                                onclick="btnSelectedRole_Click" Text="选 择" Width="50px" />
                        </ItemTemplate>
                        <HeaderStyle Width="68px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                    Height="30px" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
         </div>
        </div>
        <table style="width:596px; height: 314px;">
            <tr>
                <td class="style21">
                    <div style="text-align: center;">                        
                        <asp:Label ID="lblRoleID" runat="server" Text="用户组编码:" Font-Size="Small" 
                            style="font-weight: 700"></asp:Label>
                    </div>
                </td>
                <td class="style22">
                
                    <div style="width: 318px">
                        <asp:Label ID="lblRoleIDValue" runat="server" BorderStyle="None" 
                            Font-Size="Small" ForeColor="#0099FF">0</asp:Label>
                    </div>
                </td>
                <td class="style23">
                    <div style="width: 168px">
                        <asp:Label ID="Label9" runat="server" Text="用户组编码由系统自动生成." Font-Size="Small" 
                            ForeColor="Red"></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style21">
                    <div style="text-align: center;">                        
                        <asp:Label ID="lblRoleName" runat="server" Text="用户组名称:" Font-Size="Small" 
                            style="font-weight: 700"></asp:Label>
                    </div>
                </td>
                <td class="style22">
                
                    <div style="width: 318px">
                        <asp:TextBox ID="txtRoleName" runat="server" Width="310px" 
                            ontextchanged="txtRoleName_TextChanged"></asp:TextBox>
                    </div>
                </td>
                <td class="style23">
                    <div style="width: 168px">
                        <asp:Label ID="lblMsRoleName" runat="server" Text="*" Font-Size="Small" 
                            ForeColor="Red"></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    <div style="text-align: center;">                        
                        <asp:Label ID="lblRoleDesc" runat="server" Text="用户组描述:" Font-Size="Small" 
                            style="font-weight: 700"></asp:Label>
                    </div>
                </td>
                <td class="style7">
                
                    <asp:TextBox ID="txtRoleDesc" runat="server" Height="80px" TextMode="MultiLine" 
                        Width="310px"></asp:TextBox>
                </td>
                <td class="style8">
                    <div style="width: 167px; height: 82px;">
                        <asp:Label ID="lblMsRoleDesc" runat="server" Font-Size="Small" ForeColor="Red" Text=" "> </asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style24">
                    <div style="width: 68px; text-align: center;">                        
                        <asp:Label ID="lblRoleState" runat="server" 
                            Text="状&amp;nbsp;&amp;nbsp; &amp;nbsp; 态" Font-Size="Small" 
                            style="font-weight: 700"></asp:Label>
                    </div>
                </td>
                <td class="style25">
                
                    <asp:RadioButtonList ID="RadioButtonListRoleState" runat="server" 
                        Font-Size="Small" Height="19px" RepeatDirection="Horizontal" 
                        AutoPostBack="True" Enabled="False">
                        <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
                        <asp:ListItem Value="0">禁用</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="style26">
                    <div style="width: 168px">
                        <asp:Label ID="lblMsRoleState" runat="server" Font-Size="Small" ForeColor="Red" Text=" "> </asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style13">
                    </td>
                <td class="style14">
                
                    <div style="width: 310px; text-align: center;">
                        <asp:Button ID="btnDelete" runat="server" Height="24px" 
                            style="font-weight: 700" Text="删   除" Width="80px" 
                            onclientclick="javascript:return confirm('確定刪除该用户组吗？')"
                            onclick="btnDelete_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnSave" runat="server" Height="24px" style="font-weight: 700" 
                            Text="保   存" Width="80px" onclick="btnSave_Click" />
                    </div>
                </td>
                <td class="style15">
                    </td>
            </tr>
            <tr>
                <td align="char" style="width:61px;" class="style17" colspan="3">
                    &nbsp;</td>
            </tr>
            </table>
        
    </div>
    </form>
</body>
</html>
